-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds setters for OS/OSVersion/Architecture #66
Conversation
Signed-off-by: Micah Young <[email protected]>
703afa9
to
ec9e535
Compare
SetOS(string) error | ||
SetOSVersion(string) error | ||
SetArchitecture(string) error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually I feel like these options make more sense as options on NewImage
. Having constructor options instead of a setter would convey that is not valid to change these values for any image other than an empty image. But I can see how the awkwardness of our existing FromBase
option makes that difficult to support without broader changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, good call. I was also wondering how it will intersect with the needs of #54 which would also need very similar looking flags but to instead filter the FromBaseImage
platform.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see @ekcasey's point about setting the OS to something other than the daemon OS. Otherwise 👍
- Keep as a noop setter for consitency remote - Compare against default value to fail fast Signed-off-by: Micah Young <[email protected]>
bb43139
to
bd9808c
Compare
Required to create valid, empty images without
FromBaseImage
This will be important for Windows buildpackages in pack (currently draft PR: buildpacks/pack#840), which will not use
FromBaseImage